/**
 * Created by baiguiren on 2/17/17.
 */



let co = require('co');
co(function* () {
  let result = yield Promise.resolve(true);
  return result;
}).then(function (value) {
  console.log(value);
}, function (err) {
  console.error(err.stack);
});